﻿using JNPF.Basics.Models.PlatForm.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JNPF.Basics.Logic.PlatForm.CommonFields
{
    /// <summary>
    /// 常用字段
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-11-29
    /// </summary>
    internal interface CommonFieldsIService
    {
        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        Task<List<ComFieldsEntity>> GetList();
        /// <summary>
        /// 信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ComFieldsEntity> GetInfo(string id);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Create(ComFieldsEntity entity);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Update(ComFieldsEntity entity);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Delete(ComFieldsEntity entity);
    }
}
